const http = require('../utils/http')

const HTTP = new http.HTTP()

// 查我的家庭
export function getMyFamily(callback) {

  HTTP.request('/volunteer/familyInfo', 'GET', {},res => {
    callback(res)
  })
}

// 添加家庭成员
export function addMember(volunteerAccount, callback) {
    let params = {
    volunteerAccount
  }

  HTTP.request('/volunteer/addFamilyMember', 'POST', params, res => {
    callback(res)
  })
}
